package com.springengine.cmst0us.funnytouch;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.TextView;

/**
 * Created by CmST0us on 2017/3/8.
 */

public class MyActivity extends AppCompatActivity {
    private int mTouchTimes = 0;
    @Override
    protected void onCreate(Bundle saved) {
        super.onCreate(saved);
        setContentView(R.layout.activity_main);
        Log.d("FunnyTouch", "这里");
    }
    /** Called when the user clicks the Send button */
    public void onViewClick(View view) {
        // Do something in response to button
        TextView touchTimesTextView = (TextView) findViewById(R.id.touch_times);
        //
        touchTimesTextView.setText(new Integer(mTouchTimes++).toString() + "次!");
    }

}